package com.controls
{
	import flash.events.MouseEvent;
	import com.data.ToolIcon;

	public class SaveButtonBehaviour implements IButtonBehaviour
	{
		private var _label:String = "Speichern";
		private var _reference:ToolButton;
		private var _icon:Class = ToolIcon.SAVE;
		
		public function mouseClickHandler(evt:MouseEvent):void
		{
			
			_reference.getModel().saveData();
			
		}
		
		public function get label():String
		{
			return _label;
		}
		
		public function set reference(pButton:ToolButton):void
		{
			_reference = pButton;
		}
		
		public function set icon(pIcon:Class):void
		{
			_icon = pIcon;
		}
		public function get icon():Class
		{
			return _icon;
		}
	}
}